Hi, I am trying to link module m1 to module m2 based on "Source" attribute in m1 matching with "Object text" attribute in m2. This works fine if,for example, Obj1 has"Source"= a in m1 and Obj 1 has "Obj text"= a in m2. I am facing issue when "Source" is multi lined. For example, "Source"= a b c It should basically,link object1 with "Source"=a\nb\nc in module M1 to obj1,obj2,obj3 IN M2 having values "Obj text" as a, b, c respectively. i have written code for this, but i am stuck.Please see below
pragma runLim,0
Module tm=edit("...", true) string LinkMod="..."
for SRC in sm do
for TRG in tm do save sm
delete skp Gsquare - Thu Nov 26 07:51:20 EST 2015 |
Re: Link two modules-stuck with code Maybe if you replace
if(SRC."Source"""==txt) with if(matches (txt, SRC."Source"""))
That should return true if 'txt' is contained in SRC."Source"""
Sean |
Re: Link two modules-stuck with code DoorsXLAustralia - Thu Nov 26 11:29:55 EST 2015 Maybe if you replace
if(SRC."Source"""==txt) with if(matches (txt, SRC."Source"""))
That should return true if 'txt' is contained in SRC."Source"""
Sean Hi Sean, Worked out perfectly. Thank you so much for the quick response.
Gaurav |